import request from '@/utils/request'

export function getSpaceList(params) {
  return request({
    method: 'get',
    url: '/space/list',
    params
  })
}

export function getParkingLotList() {
  return request({
    method: 'get',
    url: '/parking/parking-lot/list'
  })
}

export function selectById(params) {
  return request({
    method: 'get',
    url: '/space/selectById',
    params
  })
}

export function add(data) {
  return request({
    method: 'post',
    url: '/space/add',
    data
  })
}

export function update(data) {
  return request({
    method: 'put',
    url: '/space/update',
    data
  })
}

export function del(params) {
  return request({
    method: 'delete',
    url: '/space/delete',
    params
  })
}

export function issue(data) {
  return request({
    method: 'put',
    url: '/space/issue',
    data
  })
}

